//
//  UserWebService.h
//  YYZB
//
//  Created by BY_R on 16/3/25.
//
//

#import "WebService.h"

@interface UserWebService : WebService
//登录
- (void)login:(NSString *)username password:(NSString *)password iphoneID:(NSString*)iphoneid
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

//注册
- (void)registe:(NSString *)username VerifyCode:(NSString*)verifyCode
       password:(NSString *)password VerifyCodeId:(NSString*)codeId source:(NSString *)helpsource
    completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

//获取验证码
-(void)getVerifyCode:(NSString*)phoneNum flag:(NSString*)flag completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

//忘记密码
- (void)forgetPsw:(NSString *)username VerifyCode:(NSString*)verifyCode
       password:(NSString *)password VerifyCodeId:(NSString*)codeId
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

//添加APPAession
-(void)AddAPPSession:(NSString*)mobile Password:(NSString*)password IMEI:(NSString*)iphoneid completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

//退出登录
-(void)logOut:(void (^)(NSArray *items, NSError *error))completionHanlder;

//修改登录密码
-(void)updateLoginPsd:(NSString*)helpid oldpsd:(NSString*)oldpsd password:(NSString*)password completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;
//修改提现密码
-(void)updateDrawalPsd:(NSString*)helpid oldpsd:(NSString*)oldpsd password:(NSString*)password completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)fetchSaveGPSFrequencyCompletionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)saveHelperGPSWithLatitude:(NSNumber *)latitude
                        longitude:(NSNumber *)longitude
                completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

@end
